#include <stdio.h>

main()
{
	int n, i, a, b, c;

	printf ("enter the num to get series\t");
	scanf ("%d", &n);

	a=0, b=1, c=0;
	
	printf ("\n");
	while (c < n)
	{
		c = a+b;
		printf ("%d\t", c);
		a = b;
		b = c;
	}
}
